package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableCaching
@SpringBootApplication // 表示一个springBoot工程
@EnableTransactionManagement // 开启事务注解支持
@MapperScan("com.itheima.reggie.mapper")// 扫描mybatis接口创建代理对象
@Slf4j // 使用日志
public class WebManageApplication {


    // 程序入口
    public static void main(String[] args) {
        SpringApplication.run(WebManageApplication.class,args);
        log.info("后台管理启动成功...");

    }
}
